package com.atguigu.day08.bean.test07;

public class Test07 {
    public static void main(String[] args) {
        Rectangle r = new Rectangle();
        r.setLength(1);
        r.setWidth(2);
        System.out.println("r的长"+r.getLength());
        System.out.println("r的宽"+r.getWidth());
        System.out.println("r的面积"+r.getArea());
        System.out.println("r的周长"+r.getPerimeter());
        r.setWidth(4);
        r.setLength(2);
        r.getInfo();
    }
}
